import App from './App.vue'
import router from './router'
import ECharts from 'vue-echarts'; // v-chars

import 'normalize.css/normalize.css'; // a modern alternative to CSS resets
import 'nprogress/nprogress.css'; // nprogress
import '@/styles/index.less'
import '@/styles/tailwind.css'

// 注册组件
import { registerCharts } from '@/utils/register-charts';
import { registerAntd } from '@/utils/register-antd';

import 'virtual:svg-icons-register';
import { getApp } from '@/utils';
import { setupStore } from '@/store';

const app = getApp(App);


// 注册需要使用的echarts
registerCharts();

// 注册需要使用的antd 组件
registerAntd(app);

// 注册pinia
setupStore(app);

app.component('VChart', ECharts);

app.use(router).mount('#app')
